class CreateCustomerInfos < ActiveRecord::Migration
  def self.up
    create_table :customer_infos do |t|
      t.integer :customer_id
      t.string :card                   ,:limit => 30
      t.integer :phone_type_id         ,:limit => 1,:default => 0
      t.integer :card_type_id          ,:limit => 1,:default => 0
      t.string :age                    ,:limit => 2
      t.date :birthday
      t.string :linkman                ,:limit => 10 #联系人 
      t.integer :is_locked             ,:limit => 1 ,:default => 0 #是否管理会要锁定 1为True 0为False
      t.timestamps
    end
  end
  
  def self.down
    drop_table :customer_infos
  end
end
